package cn.derry.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * @author MangoDai
 * @decription 消息实体类
 * @date 2017/12/20
 **/
public class Message implements Serializable{
    private String from;
    private String to;
    private String content;
    private Date date = new Date();

    public Message() {
    }

    public Message(String from, String to, String content) {
        this.from = from;
        this.to = to;
        this.content = content;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }


}
